<template>
  <div>
    <p>{{ mother }}</p>
    <p>{{ money }}</p>
    <p>{{ obj }}</p>
    <!-- <button @click="$emit('changeMoney', 699)">修改价格通知父</button> -->
    <button @click="fn">修改价格通知父</button>

    <button @click="obj.name = 'wu'">修改obj</button>
  </div>
</template>

<script>
export default {
  props: ["mother", "obj", "money"],
  methods: {
    fn() {
      this.$emit("changeMoney", 999);
    },
  },
};
</script>

<style scoped>
div {
  width: 300px;
  height: 399px;
  border: 1px solid #000;
}
</style>